package com.partner.sys.attach.api;


import com.partner.common.core.api.IApi;
import com.partner.common.core.dto.MechanismDTO;
import com.partner.sys.attach.dto.SysAttachBindVO;
import com.partner.common.dto.partner.SysAttachMainVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 附件文件Api接口
 *
 * @author partner
 */
public interface SysAttachMainApi extends IApi<SysAttachMainVO> {

    @PostMapping("/bind" )
    void bind(@RequestBody SysAttachBindVO bindVO);

    @PostMapping("/listByEntity" )
    List<SysAttachMainVO> listByEntity(@RequestBody MechanismDTO mechanismDTO);

    @PostMapping("/deleteByEntity" )
   void deleteByEntity(@RequestBody MechanismDTO mechanismDTO);


}
